import request from '@/utils/request'
import type { toolsResponseData, cityResponseData } from './type'

enum API {
  TOOLSINFO_URL = '/tools/info',
  CITYINFO_URL = '/city/info',
  KLINEINFO_URL = '/kline/info',
}

// 获取工具列表信息
export const reqToolsInfo = (data: any) => request.post<any, toolsResponseData>(API.TOOLSINFO_URL, data)
// 获取城市列表信息
export const reqCityInfo = (data: any) => request.post<any, cityResponseData>(API.CITYINFO_URL, data)
// 获取k线列表信息
export const reqKlineInfo = (data: any) => request.post<any, any>(API.KLINEINFO_URL, data)